import axios from 'axios';

if (process.env.NODE_ENV == 'development') {
    axios.defaults.baseURL = '/';

} else if (process.env.NODE_ENV == 'production') {
    axios.defaults.baseURL = '/';
}

axios.interceptors.response.use(function (response) {
    // Do something with response data
    return response;
}, function (error) {
    // Do something with response error
    return Promise.reject(error);
});